import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('网格列表'),
        ),
        body: const HomePage(),
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return GridView.extent(
      maxCrossAxisExtent: 100,
      children: const [
        Icon(Icons.pedal_bike),
        Icon(Icons.dark_mode),
        Icon(Icons.kebab_dining),
        Icon(Icons.dashboard),
        Icon(Icons.yard_rounded),
        Icon(Icons.ac_unit_rounded),
      ],
    );
  }
}
